package cn.tedu.boot052.mapper;

import cn.tedu.boot052.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT password FROM user WHERE username=#{username}")
    User select(String username);
    @Insert("INSERT INTO user VALUES (NULL,#{username},#{password},#{nickname})")
    void insert(User user);
}
